"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stats = void 0;
/*
 * @Author: hongbin
 * @Date: 2023-01-07 12:59:50
 * @LastEditors: hongbin
 * @LastEditTime: 2023-10-01 14:23:53
 * @Description:性能指示器
 */
var stats_js_1 = require("stats.js");
/**
 * 性能状态显示
 */
exports.stats = {
    stats: undefined,
    init: function () {
        //防止热重载初始化多个
        if (this.stats)
            return;
        var stats = new stats_js_1();
        this.stats = stats;
        document.body.appendChild(stats.dom);
        stats.dom.style.top = "auto";
        stats.dom.style.bottom = "0";
    },
    update: function () {
        this.stats && this.stats.update();
    },
};
